import { createRouter,createWebHashHistory } from 'vue-router' 
const routes = [
    {
        path: '/',
        name: 'landing-page',
        component:()=>import('@/pages/LandingPage.vue'),
        redirect:'/homepage',
        children:[
          {
            path: '/homepage',
            name: 'homepage',
            component: ()=>import('@/pages/homepage.vue')
          },
          {
            path: '/editorpage',
            name: 'editorpage',
            component: ()=>import('@/pages/editorpage.vue')
          },
          {
            path: '/seting',
            name: 'seting',
            component: ()=>import('@/pages/setingpage.vue')
          }
        ]
      },
      {
        path: '/desktop',
        name:'desktop',
        component: ()=>import('@/pages/desktop.vue') 
      }

]
 
export const router = createRouter({
    // 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: createWebHashHistory(),
    routes, 
})
